package cn.lutu.dao.mapper;


import cn.lutu.protocol.entity.Article;

import cn.lutu.protocol.search.ArticleSearchVO;
import cn.lutu.protocol.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleMapper extends BaseMapper<Article> {

    List<ArticleListVO> selectAll();

    List<ArticleListVO> selectHotArt();

    List<ArticleListVO> selectRecent();

    List<ArticleListVO> selectSearch(String textSearch);

    List<HotListVO> selectHot();

    ArticleDetailVO selectArticleDetail(Long id);

    List<ArticleOthersListVO> selectByUserId(Long userId);

    List<ArticleOthersListVO> selectArticleUp(Long userId);

    List<ArticleOthersListVO> selectArticleCollect(Long userId);

    ArticleUpVO selectUp(Long userId,Long articleId);

    ArticleCollectVO selectCollect(Long userId,Long articleId);

    List<ArticleListVO> selectUnCheck();

    List<ArticleListVO> rejectCheckList();

    List<ArticleListVO> rejectCheckListById(Long userId);

    List<ArticleSearchVO> listSearchVO();
}
